#include<stdio.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/wait.h>
int main()
{
  if(fork() == 0)
  {
    //child
    char* env[]={
      "MYPATH:this is Mango's way",
      "MYName:I am Mango",
      NULL 
    };
    char* argv[]={
      "myexe",
      NULL
    };
    execve("./myexe",argv,env);
    printf("you can see me!\n");
    exit(1);
  }
  //parent
  waitpid(-1,NULL,0);
  printf("father wait child success\n");
  return 0;
}

